// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/libs/request'

/*
 * 获取商品表单头数量；
 * */
export function getGoodHeade() {
	return request({
		url: 'product/product/type_header',
		method: 'get'
	})
}

/*
 * 获取商品表单头数量；
 * */
export function getGoodsCategory(data) {
	return request({
		url: '/goods/goods_category',
		method: 'get',
		params: data
	})
}

/**
 * @description 商品管理-- 列表
 */
export function getGoods(params) {
	return request({
		url: 'product/product',
		method: 'get',
		params
	})
}

/**
 * @description 商品管理-- 临时保存
 */
export function productCache() {
	return request({
		url: 'product/cache',
		method: 'get'
	});
}

/**
 * @description 商品管理-- 取消临时保存
 */
export function cacheDelete() {
	return request({
		url: 'product/cache',
		method: 'delete'
	});
}

/**
 * @description 商品管理-- 上下架
 */
export function PostgoodsIsShow(id, isShow) {
	return request({
		url: `product/product/set_show/${id}/${isShow}`,
		method: 'put'
	})
}

/**
 * @description 商品属性 -- 批量上下架
 * @param {Object} param data {Object} 传值对象
 */
export function productShowApi(data) {
	return request({
		url: `product/product/product_show`,
		method: 'put',
		data
	})
}

/**
 * @description 商品属性 -- 批量下架
 * @param {Object} param data {Object} 传值对象
 */
export function productUnshowApi(data) {
	return request({
		url: `product/product/product_unshow`,
		method: 'put',
		data
	})
}

/**
 * @description 商品管理-- 分类
 */
export function treeListApi(type) {
	return request({
		url: `product/category/tree/${type}`,
		method: 'get'
	})
}

/**
 * @description 商品管理-- 详情
 */
export function productInfoApi(id) {
	return request({
		url: `product/product/${id}`,
		method: 'get'
	})
}

/**
 * @description 商品管理-- 提交
 */
export function productAddApi(data) {
	return request({
		url: `product/product/${data.id}`,
		method: 'POST',
		data
	})
}

/**
 * @description 商品分类 -- 列表
 * @param {Object} param params {Object} 传值参数
 */
export function productListApi(params) {

	return request({
		url: 'school/school',
		method: 'get',
		params
	})
}



/**
 * @description 商品分类 -- 列表
 * @param {Object} param params {Object} 传值参数
 */
export function productListdeviceApi(params) {
	return request({
		url: 'school/device/vip_list',
		method: 'get',
		params
	})
}
export function keshitestListApi(params) {
	return request({
		url: '/test/keshitest/vip_list',
		method: 'get',
		params
	})
}



/*获取列表测试前端*/


/*获取列表部门测试小波*/
export function bumenListApi(params) {
	return request({
		url: '/test/bumen/vip_list',
		method: 'get',
		params
	})
}



/*获取列表部门管理*/
export function bumenmanageListApi(params) {
	return request({
		url: '/test/bumenmanage/vip_list',
		method: 'get',
		params
	})
}


export function getOrgData(params) {
	return request({
		url: '/test/bumenmanage/get_bumen_tree_list',
		method: 'get',
		params
	})
}




/*获取列表采购日志*/
export function gochukuorderlogApi(params) {
	return request({
		url: '/school/caiorderlog/chuku_list',
		method: 'get',
		params
	})
}




/*获取列表退货日志*/
export function gotuiorderlogApi(params) {
	return request({
		url: '/school/caiorderlog/tuiorder_list',
		method: 'get',
		params
	})
}



/*获取列表盘点日志*/
export function panorderlogListApi(params) {
	return request({
		url: '/school/caiorderlog/panorder_list',
		method: 'get',
		params
	})
}


/*获取列表出库管理*/
export function chukuorderListApi(params) {
	return request({
		url: '/school/chukuorder/vip_list',
		method: 'get',
		params
	})
}

/*获取列表出库清单*/
export function chukuqingdanListApi(params) {
	return request({
		url: '/school/chukuqingdan/vip_list',
		method: 'get',
		params
	})
}

/*获取列表退货单管理*/
export function tuiorderListApi (params) {
			return request({
				url: '/school/tuiorder/vip_list',
				method: 'get',
				params
			})
		}





/*获取列表外卖购物车*/
export function wcartListApi (params) {
                    return request({
                        url: '/school/wcart/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表测试用户*/
export function uniappuserListApi (params) {
                    return request({
                        url: '/test/uniappuser/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表外卖订单*/
export function worderListApi (params) {
                    return request({
                        url: '/school/worder/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表我的组件*/
export function mycompListApi (params) {
                    return request({
                        url: '/school/mycomp/vip_list',
                        method: 'get',
                        params
                    })
                }
export function myuniproListApi (params) {
                    return request({
                        url: '/school/myunipro/vip_list',
                        method: 'get',
                        params
                    })
                }
				export function myunipropathListApi (params) {
                    return request({
                        url: '/school/myunipro/path_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表外面订单商品*/
export function wordergoodsListApi (params) {
                    return request({
                        url: '/school/wordergoods/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表测试页面*/
export function unipageListApi (params) {
                    return request({
                        url: '/school/unipage/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表订餐退款*/
export function canorderrefundListApi (params) {
                    return request({
                        url: '/school/canorderrefund/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表订单日志*/
export function orderlogListApi (params) {
                    return request({
                        url: '/school/orderlog/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表缴费通道*/
export function payentryListApi (params) {
                    return request({
                        url: '/school/payentry/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表缴费记录*/
export function payentryrecordListApi (params) {
                    return request({
                        url: '/school/payentryrecord/vip_list',
                        method: 'get',
                        params
                    })
                }

				export function printpayentryrecordListApi (params) {
                    return request({
                        url: '/school/payentryrecord/print',
                        method: 'get',
                        params
                    })
                }






/*获取列表用户uni项目*/
export function uniproListApi (params) {
                    return request({
                        url: '/school/unipro/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表订餐日期*/
export function candateListApi (params) {
                    return request({
                        url: '/school/candate/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表好友列表*/
export function friendlistListApi (params) {
                    return request({
                        url: '/school/friendlist/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表单位二维码*/
export function qrcodelistListApi (params) {
                    return request({
                        url: '/school/qrcodelist/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表测试实体示例*/
export function mytestyangListApi (params) {
                    return request({
                        url: '/school/mytestyang/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表测试实体示例*/
export function mytest6ListApi (params) {
                    return request({
                        url: '/school/mytest6/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表实体示例8*/
export function mytest8ListApi (params) {
                    return request({
                        url: '/school/mytest8/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表实体示例9*/
export function mytest9ListApi (params) {
                    return request({
                        url: '/school/mytest9/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表实体示例10*/
export function mytest10ListApi (params) {
                    return request({
                        url: '/school/mytest10/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表请求历史记录*/
export function apihistoryListApi (params) {
                    return request({
                        url: '/school/apihistory/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表商户分类*/
export function merchant_cateListApi (params) {
                    return request({
                        url: '/school/merchant_cate/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表商户*/
export function merchantListApi (params) {
                    return request({
                        url: '/school/merchant/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表考勤记录*/
			export function kqrecordListApi (params) {
                    return request({
                        url: '/school/kqrecord/vip_list',
                        method: 'get',
                        params
                    })
                }


				export function jisuankqrecordListApi (params) {
                    return request({
                        url: '/school/kqrecord/jisuan_list',
                        method: 'get',
                        params
                    })
                }

				export function myexportexcel (params) {
                    return request({
                        url: '/school/kqrecord/myexportexcel',
                        method: 'get',
                        params
                    })
                }

				export function changedaka (params) {
                    return request({
                        url: '/school/kqrecord/changedaka',
                        method: 'post',
                        params
                    })
                }





				export function importexcel (params) {
                    return request({
                        url: '/school/kqrecord/importexcel',
                        method: 'post',
                        params
                    })
                }






/*获取列表考勤设置*/
export function kqsetListApi (params) {
                    return request({
                        url: '/school/kqset/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表导入excel记录*/
export function importrecordListApi (params) {
                    return request({
                        url: '/school/importrecord/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表我发起的*/
export function flownameListApi (params) {
                    return request({
                        url: '/school/flowname/vip_list',
                        method: 'get',
                        params
                    })
                }
				export function saveflow (params) {
                    return request({
                        url: '/school/flowname/saveflow',
                        method: 'post',
                        params
                    })
                }

/*获取列表审批类型*/
export function flow_typeListApi (params) {
                    return request({
                        url: '/school/flow_type/vip_list',
                        method: 'get',
                        params
                    })
                }


				export function flow_typelinkListApi2 (params) {
                    return request({
                        url: '/school/flow_type/vip_list2',
                        method: 'get',
                        params
                    })
                }






/*获取列表审批步骤*/
export function flowstepListApi (params) {
                    return request({
                        url: '/school/flowstep/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表审批记录*/
export function flowrecordListApi (params) {
                    return request({
                        url: '/school/flowrecord/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表日常审批*/
export function approveListApi (params) {
                    return request({
                        url: '/school/approve/vip_list',
                        method: 'get',
                        params
                    })
                }

/*获取列表员工自主上传*/
export function selfsubmitListApi (params) {
                    return request({
                        url: '/school/selfsubmit/vip_list',
                        method: 'get',
                        params
                    })
                }
/*list*/

/**
 * @description 商品分类 -- 添加表单
 * @param {Object} param params {Object} 传值参数
 */
export function productCreateApi() {
	return request({
		url: 'school/school/create',
		method: 'get'
	})
}

/**
 * @description 商品分类 -- 添加表单
 * @param {Object} param params {Object} 传值参数
 */
export function productCreatedeviceApi(id) {
	return request({
		url: 'school/device/create',
		method: 'get',
		params: id
	})
}
export function keshitestCreateApi(id) {
	return request({
		url: '/test/keshitest/create',
		method: 'get',
		params: id
	})
}



/*新增和修改测试前端*/


/*新增和修改部门测试小波*/
export function bumenCreateApi(id) {
	return request({
		url: '/test/bumen/create',
		method: 'get',
		params: id
	})
}



/*新增和修改部门管理*/
export function bumenmanageCreateApi(id) {
	return request({
		url: '/test/bumenmanage/create',
		method: 'get',
		params: id
	})
}

/*新增和修改库存商品*/
export function kucungoodsCreateApi(id) {
	return request({
		url: '/school/kucungoods/create',
		method: 'get',
		params: id
	})
}

/*新增和修改营养数据*/
export function yinyangCreateApi(id) {
	return request({
		url: '/school/yinyang/create',
		method: 'get',
		params: id
	})
}

/*新增和修改供应商管理*/
export function info_supplierCreateApi(id) {
	return request({
		url: '/school/info_supplier/create',
		method: 'get',
		params: id
	})
}

/*新增和修改仓库信息管理*/
export function warehouseCreateApi(id) {
	return request({
		url: '/school/warehouse/create',
		method: 'get',
		params: id
	})
}

/*新增和修改客户信息管理*/
export function customerinfoCreateApi(id) {
	return request({
		url: '/school/customerinfo/create',
		method: 'get',
		params: id
	})
}

/*新增和修改供应商*/
export function supplierinfoCreateApi(id) {
	return request({
		url: '/school/supplierinfo/create',
		method: 'get',
		params: id
	})
}

/*新增和修改供应商列表*/
export function supplierinfo2CreateApi(id) {
	return request({
		url: '/school/supplierinfo2/create',
		method: 'get',
		params: id
	})
}



/*新增和修改公司员工*/
export function employeeCreateApi(id) {
	return request({
		url: '/school/employee/create',
		method: 'get',
		params: id
	})
}

/*新增和修改职位管理*/
export function worknameCreateApi(id) {
	return request({
		url: '/school/workname/create',
		method: 'get',
		params: id
	})
}

/*新增和修改库存商品管理*/
export function mykucunCreateApi(id) {
	return request({
		url: '/school/mykucun/create',
		method: 'get',
		params: id
	})
}

/*新增和修改库存流水*/
export function kucunlogCreateApi(id) {
	return request({
		url: '/school/kucunlog/create',
		method: 'get',
		params: id
	})
}

/*新增和修改仓库信息管理2*/
export function cangkuCreateApi(id) {
	return request({
		url: '/school/cangku/create',
		method: 'get',
		params: id
	})
}



/*新增和修改采购订单*/
export function caiorderCreateApi(id) {
	return request({
		url: '/school/caiorder/create',
		method: 'get',
		params: id
	})
}


// 新增采购入单


export function caiorderAddApi(data) {
	return request({
		url: '/school/caiorder/addsave',
		method: 'post',
		params: data
	})
}


export function posterpayentryimg(data) {
	return request({
		url: '/school/payentry/post',
		method: 'post',
		data
	})
}


export function generatepayentrymenu(data) {
	return request({
		url: '/school/payentry/generatepayentrymenu',
		method: 'post',
		data
	})
}



export function printcaiorderone(data) {
	return request({
		url: '/school/caiorder/printcaiorderone',
		method: 'post',
		data
	})
}




export function chukuAddApi(data) {
	return request({
		url: '/school/chuku/addsave',
		method: 'post',
		params: data
	})
}



export function panorderAddApi(data) {
	return request({
		url: '/school/pandianrecord/addsave',
		method: 'post',
		params: data
	})
}



export function mycompsave(data) {
	return request({
		url: '/school/mycomp',
		method: 'post',
		data
	})
}







// 审核
export function submitcheckApi(data) {
	return request({
		url: '/school/caiorder/submit_check',
		method: 'post',
		params: data
	})
}



// 审核
export function dotuiordercheckApi(data) {
	return request({
		url: '/school/dotuiordercheck',
		method: 'post',
		params: data
	})
}




// 提交审核
export function addcheckApi(data) {
	return request({
		url: '/school/addcheckApi',
		method: 'post',
		params: data
	})
}


export function addchukucheckApi(data) {
	return request({
		url: '/school/addchukucheckApi',
		method: 'post',
		params: data
	})
}


export function addpanordercheckApi(data) {
	return request({
		url: '/school/addpanordercheck',
		method: 'post',
		params: data
	})
}




export function addtuiordercheckApi(data) {
	return request({
		url: '/school/addtuiordercheck',
		method: 'post',
		params: data
	})
}


// 提交审核
export function dopaycheckApi(data) {
	return request({
		url: '/school/caiorder/paypage',
		method: 'post',
		params: data
	})
}


// 提交审核
export function immtuiorderpageApi(data) {
	return request({
		url: '/school/tuiorder/immtuiorderpage',
		method: 'post',
		params: data
	})
}





// 出库提交审核
export function chukupaypagecheckApi(data) {
	return request({
		url: '/school/chukuorder/paypage',
		method: 'post',
		params: data
	})
}


// 入库审核
export function gokupageApi(data) {
	return request({
		url: '/school/caiorder/gokupage',
		method: 'post',
		params: data
	})
}

export function gochukupageApi(data) {
	return request({
		url: '/school/chukuorder/gochukupage',
		method: 'post',
		params: data
	})
}


/*新增和修改库存商品营养*/
export function goodsyinCreateApi(id) {
	return request({
		url: '/school/goodsyin/create',
		method: 'get',
		params: id
	})
}

/*新增和修改库存商品营养*/


/*新增和修改菜谱管理*/
export function dishlistCreateApi(id) {
	return request({
		url: '/school/dishlist/create',
		method: 'get',
		params: id
	})
}

/*新增和修改菜谱食材列表*/
export function dishshiCreateApi(id) {
	return request({
		url: '/school/dishshi/create',
		method: 'get',
		params: id
	})
}
export function caijidishApi(id) {
	return request({
		url: '/school/dishshi/caijidish',
		method: 'get',
		params: id
	})
}

/*新增和修改测试思思*/


/*新增和修改采购清单商品*/
export function qingdanCreateApi(id) {
	return request({
		url: '/school/qingdan/create',
		method: 'get',
		params: id
	})
}

/*新增和修改采购日志*/
export function caiorderlogCreateApi(id) {
	return request({
		url: '/school/caiorderlog/create',
		method: 'get',
		params: id
	})
}



/*新增和修改采购日志*/
/* export function gochukuorderlogApi(id) {
	return request({
		url: '/school/caiorderlog/create',
		method: 'get',
		params: id
	})
}


 */



export function gettuihuoinfoApi(id) {
	return request({
		url: '/school/gettuihuoinfo',
		method: 'get',
		params: id
	})
}

/*新增和修改出库管理*/
export function chukuorderCreateApi(id) {
	return request({
		url: '/school/chukuorder/create',
		method: 'get',
		params: id
	})
}

/*新增和修改出库清单*/
export function chukuqingdanCreateApi(id) {
	return request({
		url: '/school/chukuqingdan/create',
		method: 'get',
		params: id
	})
}

/*新增和修改退货单管理*/
export function tuiorderCreateApi (id) {
                            return request({
                                url: '/school/tuiorder/create',
                                method: 'get',
                                params: id
                            })
                        }


export function tuiorderAddApi (data) {
		return request({
			url: '/school/tuiorder/addsave',
			method: 'post',
			params: data
		})
	}


export function panorderdocheckApi(data) {
		return request({
			url: '/school/pandianrecord/docheck',
			method: 'post',
			params: data
		})
	}





/*新增和修改退货清单*/
export function tuiorderqingdanCreateApi (id) {
                            return request({
                                url: '/school/tuiorderqingdan/create',
                                method: 'get',
                                params: id
                            })
                        }





/*新增和修改测试新家*/
export function testxinjiaCreateApi (id) {
                            return request({
                                url: '/test/testxinjia/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改盘点记录*/
export function pandianrecordCreateApi (id) {
                            return request({
                                url: '/school/pandianrecord/create',
                                method: 'get',
                                params: id
                            })
                        }




//获取盘点信息
export function getpanInfoApi (id) {
                            return request({
                                url: '/school/pandianrecord/getpanInfo',
                                method: 'get',
                                params: id
                            })
                        }



/*新增和修改盘点清单*/
export function panorderqingdanCreateApi (id) {
                            return request({
                                url: '/school/panorderqingdan/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改订餐购物车*/
export function mycartCreateApi (id) {
                            return request({
                                url: '/school/mycart/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改身份认证管理*/
export function idcardauthCreateApi (id) {
                            return request({
                                url: '/school/idcardauth/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改银行卡*/
export function userbankCreateApi (id) {
                            return request({
                                url: '/school/userbank/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改订餐主订单*/
export function canorderCreateApi (id) {
                            return request({
                                url: '/school/canorder/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改订餐订单*/
export function canorderpartCreateApi (id) {
                            return request({
                                url: '/school/canorderpart/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改动态*/
export function dymsgCreateApi (id) {
                            return request({
                                url: '/school/dymsg/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改动态喜欢*/
export function dylikeCreateApi (id) {
                            return request({
                                url: '/school/dylike/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改外卖商家*/
export function wshopCreateApi (id) {
                            return request({
                                url: '/school/wshop/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改动态评论*/
export function dycommentCreateApi (id) {
                            return request({
                                url: '/school/dycomment/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改举报页面*/
export function jubaoCreateApi (id) {
                            return request({
                                url: '/school/jubao/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改wshopcate*/
export function shopcateCreateApi (id) {
                            return request({
                                url: '/school/shopcate/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改外卖商家商品*/
export function wgoodsCreateApi (id) {
                            return request({
                                url: '/school/wgoods/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改外卖商品规格*/
export function wguigeCreateApi (id) {
                            return request({
                                url: '/school/wguige/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改外卖购物车*/
export function wcartCreateApi (id) {
                            return request({
                                url: '/school/wcart/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改测试用户*/
export function uniappuserCreateApi (id) {
                            return request({
                                url: '/test/uniappuser/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改外卖订单*/
export function worderCreateApi (id) {
                            return request({
                                url: '/school/worder/create',
                                method: 'get',
                                params: id
                            })
                        }


/*新增和修改我的组件*/
export function mycompCreateApi (id) {
                            return request({
                                url: '/school/mycomp/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改外面订单商品*/
export function wordergoodsCreateApi (id) {
                            return request({
                                url: '/school/wordergoods/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改测试页面*/
export function unipageCreateApi (id) {
                            return request({
                                url: '/school/unipage/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改订餐退款*/
export function canorderrefundCreateApi (id) {
                            return request({
                                url: '/school/canorderrefund/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改订单日志*/
export function orderlogCreateApi (id) {
                            return request({
                                url: '/school/orderlog/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改缴费通道*/
export function payentryCreateApi (id) {
                            return request({
                                url: '/school/payentry/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改缴费记录*/
export function payentryrecordCreateApi (id) {
                            return request({
                                url: '/school/payentryrecord/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改用户uni项目*/
export function uniproCreateApi (id) {
                            return request({
                                url: '/school/unipro/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改订餐日期*/
export function candateCreateApi (id) {
                            return request({
                                url: '/school/candate/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改好友列表*/
export function friendlistCreateApi (id) {
                            return request({
                                url: '/school/friendlist/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改单位二维码*/
export function qrcodelistCreateApi (id) {
                            return request({
                                url: '/school/qrcodelist/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改测试实体示例*/
export function mytestyangCreateApi (id) {
                            return request({
                                url: '/school/mytestyang/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改测试实体示例*/
export function mytest6CreateApi (id) {
                            return request({
                                url: '/school/mytest6/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改实体示例8*/
export function mytest8CreateApi (id) {
                            return request({
                                url: '/school/mytest8/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改实体示例9*/
export function mytest9CreateApi (id) {
                            return request({
                                url: '/school/mytest9/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改实体示例10*/
export function mytest10CreateApi (id) {
                            return request({
                                url: '/school/mytest10/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改请求历史记录*/
export function apihistoryCreateApi (id) {
                            return request({
                                url: '/school/apihistory/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改商户分类*/
export function merchant_cateCreateApi (id) {
                            return request({
                                url: '/school/merchant_cate/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改商户*/
export function merchantCreateApi (id) {
                            return request({
                                url: '/school/merchant/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改考勤记录*/
export function kqrecordCreateApi (id) {
                            return request({
                                url: '/school/kqrecord/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改考勤设置*/
export function kqsetCreateApi (id) {
                            return request({
                                url: '/school/kqset/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改导入excel记录*/
export function importrecordCreateApi (id) {
                            return request({
                                url: '/school/importrecord/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改我发起的*/
export function flownameCreateApi (id) {
                            return request({
                                url: '/school/flowname/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改审批类型*/
export function flow_typeCreateApi (id) {
                            return request({
                                url: '/school/flow_type/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改审批步骤*/
export function flowstepCreateApi (id) {
                            return request({
                                url: '/school/flowstep/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改审批记录*/
export function flowrecordCreateApi (id) {
                            return request({
                                url: '/school/flowrecord/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改日常审批*/
export function approveCreateApi (id) {
                            return request({
                                url: '/school/approve/create',
                                method: 'get',
                                params: id
                            })
                        }

/*新增和修改员工自主上传*/
export function selfsubmitCreateApi (id) {
                            return request({
                                url: '/school/selfsubmit/create',
                                method: 'get',
                                params: id
                            })
                        }
/*add*/






/*列表关联表tdh_caiorder*/
export function qingdanlinkListApi(id) {
	return request({
		url: '/school/qingdan/linkList',
		method: 'get',
		params: id
	})
}

/*列表关联表tdh_caiorder*/
export function caiorderloglinkListApi(id) {
	return request({
		url: '/school/caiorderlog/linkList',
		method: 'get',
		params: id
	})
}

/*列表关联表tdh_cangku*/
export function chukuorderlinkListApi(id) {
	return request({
		url: '/school/chukuorder/linkList',
		method: 'get',
		params: id
	})
}

/*列表关联表tdh_tuiorder*/
export function tuiorderqingdanlinkListApi (id) {
                            return request({
                                url: '/school/tuiorderqingdan/linkList',
                                method: 'get',
                                params: id
                            })
                        }

/*列表关联表tdh_bumenmanage*/




/*列表关联表tdh_bumenmanage*/
export function pandianrecordlinkListApi (id) {
                            return request({
                                url: '/school/pandianrecord/linkList',
                                method: 'get',
                                params: id
                            })
                        }

/*列表关联表tdh_pandianrecord*/
export function panorderqingdanlinkListApi (id) {
                            return request({
                                url: '/school/panorderqingdan/linkList',
                                method: 'get',
                                params: id
                            })
                        }

/*列表关联表tdh_user*/
export function mycartlinkListApi (id) {
                            return request({
                                url: '/school/mycart/linkList',
                                method: 'get',
                                params: id
                            })
                        }

/*列表关联表tdh_user*/
export function idcardauthlinkListApi (id) {
                            return request({
                                url: '/school/idcardauth/linkList',
                                method: 'get',
                                params: id
                            })
                        }

/*列表关联表tdh_canorder*/
export function canorderrefundlinkListApi (id) {
                            return request({
                                url: '/school/canorderrefund/linkList',
                                method: 'get',
                                params: id
                            })
                        }

/*列表关联表tdh_worder*/
export function orderloglinkListApi (id) {
                            return request({
                                url: '/school/orderlog/linkList',
                                method: 'get',
                                params: id
                            })
                        }

/*列表关联表tdh_school*/
export function qrcodelistlinkListApi (id) {
                            return request({
                                url: '/school/qrcodelist/linkList',
                                method: 'get',
                                params: id
                            })
                        }

/*列表关联表tdh_merchant_cate*/
export function merchantlinkListApi (id) {
                            return request({
                                url: '/school/merchant/linkList',
                                method: 'get',
                                params: id
                            })
                        }
						export function shopcheck (data) {
                            return request({
                                url: '/school/merchant/shopcheck',
								method: 'post',
								data
                            })
                        }
/*link*/

/**
 * @description 商品分类 -- 编辑表单
 * @param {Object} param params {Object} 传值参数
 */
export function productEditApi(id) {
	return request({
		url: `school/school/${id}`,
		method: 'get'
	})
}

export function productEditdeviceApi(id) {
	return request({
		url: `school/device/${id}`,
		method: 'get'
	})
}

/*edit*/



/**
 * @description 商品分类 -- 修改状态
 * @param {Object} param params {Object} 传值参数
 */
export function setShowApi(data) {
	return request({
		url: `product/category/set_show/${data.id}/${data.is_show}`,
		method: 'PUT'
	})
}

/**
 * @description 选择商品 -- 列表
 */
export function changeListApi(params) {
	return request({
		url: `product/product/list`,
		method: 'GET',
		params
	})
}

/**
 * @description 商品评论 -- 列表
 * @param {Object} param params {Object} 传值参数
 */
export function replyListApi(params) {
	return request({
		url: `product/reply`,
		method: 'get',
		params
	})
}

/**
 * @description 商品评论 -- 回复
 * @param {Object} param data {Object} 传值参数
 */
export function setReplyApi(data, id) {
	return request({
		url: `product/reply/set_reply/${id}`,
		method: 'PUT',
		data
	})
}

/**
 * @description 获取复制商品配置
 */
export function copyConfigApi() {
	return request({
		url: `product/copy_config`,
		method: 'get'
	})
}

/**
 * @description 商品管理 -- 获取京东、淘宝商品数据
 * @param {Object} param data {Object} 传值参数
 */
export function crawlFromApi(data) {
	return request({
		url: `product/copy`,
		method: 'POST',
		data
	})
}


/**
 * @description 商品管理 -- 京东、淘宝商品数据提交
 * @param {Object} param data {Object} 传值参数
 */
export function crawlSaveApi(data) {
	return request({
		url: `product/crawl/save`,
		method: 'POST',
		data
	})
}

/**
 * @description 商品管理 -- 生成属性
 * @param {Object} param data {Object} 传值参数
 */
export function generateAttrApi(data, id, type) {
	return request({
		url: `product/generate_attr/${id}/${type}`,
		method: 'POST',
		data
	})
}

/**
 * @description 商品属性 -- 列表
 * @param {Object} param params {Object} 传值参数
 */
export function ruleListApi(params) {
	return request({
		url: `product/product/rule`,
		method: 'GET',
		params
	})
}

/**
 * @description 商品属性 -- 添加
 * @param {Number} param id {Number} 属性id
 * @param {Object} param data {Object} 传值参数
 */
export function ruleAddApi(data, id) {
	return request({
		url: `product/product/rule/${id}`,
		method: 'POST',
		data
	})
}

/**
 * @description 商品属性 -- 详情
 * @param {Number} param id {Number} 属性id
 */
export function ruleInfoApi(id) {
	return request({
		url: `product/product/rule/${id}`,
		method: 'get'
	})
}

/**
 * @description 商品评价 -- 虚拟评价
 * @id--产品id；
 */
export function fictitiousReply(id) {
	return request({
		url: `product/reply/fictitious_reply/${id}`,
		method: 'get'
	})
}

/**
 * @description 商品属性 -- 获取规则属性模板
 */
export function productGetRuleApi() {
	return request({
		url: `product/product/get_rule`,
		method: 'get'
	})
}

/**
 * @description 商品 -- 获取运费模板
 */
export function productGetTemplateApi() {
	return request({
		url: `product/product/get_template`,
		method: 'get'
	})
}

/**
 * @description 商品 -- 获取运费模板
 */
export function productGetTempKeysApi() {
	return request({
		url: `product/product/get_temp_keys`,
		method: 'get'
	})
}

/**
 * @description 商铺产品 -- 导出
 */
export function storeProductApi(data) {
	return request({
		url: `export/storeProduct`,
		method: 'get',
		params: data
	})
}

/**
 * @description 添加商品 -- 检测活动存在
 */
export function checkActivityApi(id) {
	return request({
		url: `product/product/check_activity/${id}`,
		method: 'get'
	})
}

/**
 * @description 商品添加编辑-- 用户标签
 */
export function labelListApi() {
	return request({
		url: 'user/user_label',
		method: 'get'
	})
}
/**
 * @description 商品添加编辑-- 用户标签
 */
export function uploadType() {
	return request({
		url: 'file/upload_type',
		method: 'get'
	})
}
/**
 * @description 商品添加编辑-- 用户标签
 */
export function importCard(data) {
	return request({
		url: 'product/product/import_card',
		method: 'get',
		params: data
	})
}
